package Listener;

import jakarta.servlet.http.HttpSession;
import jakarta.servlet.http.HttpSessionEvent;
import jakarta.servlet.http.HttpSessionListener;

import java.util.HashMap;

public class SessionListener implements HttpSessionListener {
    public void sessionCreated(HttpSessionEvent event){
        HttpSession session= event.getSession();
        HashMap posts=new HashMap();
        session.setAttribute("posts",posts);
        //session.setAttribute("money",0F);

    }

    @Override
    public void sessionDestroyed(HttpSessionEvent arg0) {

    }
}